package com.gx.consumer;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


/**
 * @author ls
 * @date 2022/7/22
 */
@Component
@Slf4j
public class SmsJobHandler extends IJobHandler {
    @Override
    @XxlJob("SmsJobHandler")
    public void execute() throws Exception {
        String jobParam = XxlJobHelper.getJobParam();

        System.out.println(jobParam);
    }
}
